/*
 * @Author: szx
 * @Date: 2021-11-04 14:25:24
 * @LastEditTime: 2021-11-04 14:27:11
 * @Description:
 * @FilePath: \leetcode\300-399\367\367.cpp
 */
#include <cmath>
#include <iostream>
using namespace std;
class Solution {
   public:
    bool isPerfectSquare(int num) {
        int n = sqrt(num);
        return n * n == num;
    }
};
